package com.test1223;

public class Test04 {
    public static void main(String[] args) {
        // 打印3个变量中的最小值
        int a = 2;
        int b = 5;
        int c = 3;

//        System.out.println((a<b?a:b)<c?(a<b?a:b):c);

        int min=b;
        if(min>a){
            min=a;
        }else if(min>c){
            min=c;
        }else {
            min = b;
        }
        System.out.println(min);

    }
}
